const {resolve} = require('path');
// clean-webpack-plugin
module.exports = {
	entry: './index.js',
	output: {
		path: resolve(__dirname, 'dist'),
		filename: 'index.js'
	},
	resolveLoader: {
		modules: ['node_modules', resolve(__dirname, "./loaders")]
	},
	module: {
		rules: [
			{
				test: /\.png$/,
				use: 'file-loader'
			},
			{
				test: /\.css$/,
				use: [
					'style-loader',
					'css-loader'
				]
			},
			{
				test: /\.md$/,
				use: 'doc-loader'
			}
		]
	}
}
